# coding: utf-8
from OneDjango import settings

from huaweicloudsdkcore.auth.credentials import GlobalCredentials
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkcore.http.http_config import HttpConfig
from huaweicloudsdkbss.v2 import *
from huaweicloudsdkbss.v2.region.bss_region import BssRegion

a=settings.Ak
print(a)

# if __name__ == "__main__":

#     ak = "5APHKJCMCKW2Y4714OAK"
#     sk = "ycxYFE0qP1lEpDv9tITmFkOP2XFCxuKvhyDOXZWr"

  
#     credentials = GlobalCredentials(ak, sk) \

#     client = BssClient.new_builder() \
#         .with_credentials(credentials) \
#         .with_region(BssRegion.value_of("cn-north-1")) \
#         .build()

#     try:
#         request = AutoRenewalResourcesRequest()
#         request.resource_id = "b36b81d7-cbba-49ec-84fc-0f6cbd766f4d"
#         response = client.auto_renewal_resources(request)
#         print(response)
#     except exceptions.ClientRequestException as e:
#         print(e.status_code)
#         print(e.request_id)
#         print(e.error_code)
#         print(e.error_msg)